Hide axis

Hide axis

par(xaxt='n')

or

plot(...,xaxt='n')

Show the axis

par(xaxt='s')

Print the x axis

axis(1, at=at, labels=labels)

Example:

par(xaxt='n')
plot(1:10)
x = c(1,3,7,10)
par(xaxt='s')
axis(1, at=x, labels=x)
Homepage
Comments

Hide Comments